package comgame.components.EquipmentComponent;

import com.almasb.fxgl.entity.component.Component;
import comgame.entities.EquipmentEnum.EquipmentType;

public class EquipmentComponent extends Component {

    private final EquipmentType equipmentType;

    public EquipmentComponent(EquipmentType equipmentType) {
        this.equipmentType = equipmentType;
    }

    public EquipmentType getEquipmentType() {
        return equipmentType;
    }
    public String getDescription() {
        // 这里可以根据需要自定义描述
        return "";
    }

    @Override
    public void onAdded() {
        System.out.println("装备已装备: " + getDescription());
        //添加角色属性改变

    }
}